<template>
  <div>
    <!-- 购物车top -->
    <Carttop></Carttop>
    <!-- 商品卡片 -->
    <Card></Card>
  </div>
</template>

<script>
import Cookie from 'js-cookie'
import Carttop from './components/Carttop'
import Card from './components/Card'
export default {
  beforeCreate () {
    if (Cookie.get('auth') == null) {
      this.$router.push('/Login')
    }
  },
  components: {
    Carttop,
    Card
  }
}
</script>

<style scoped>
</style>
